Avoid deprecated implicit handle->int conversion in tests

9 jobs for deprecate-implicit-int in 5 minutes and 54 seconds (queued for 9 seconds)
Status Job ID Name Coverage
  Test
passed #67293
VS2015
VS2015-32-bit

00:01:15

passed #67292
VS2015
VS2015-64-bit

00:01:21

passed #67291
VS2017
VS2017-32-bit

00:01:11

passed #67290
VS2015
VS2017-64-bit

00:01:24

passed #67287
Linux
clang-c++11

00:03:45

passed #67289
Linux
cppcheck

00:00:50

passed #67294
Linux
doc

00:00:18

passed #67286
Linux
gcc-c++11

00:04:02

passed #67288
Apple
macos-c++11

00:01:40