Avoid MSVC warning in tests

Visual C++ emits the following warning on implicit conversions from pointers to bool:
"warning C4800: 'const void *': forcing value to bool 'true' or 'false' (performance warning)"
Fixed by explicitly comparing the pointer to 0.
Merge pull request #2 from MarcelRaad/patch-1

Avoid MSVC warning in tests