Changed the test to avoid EXPECT_EQ(false, ...), which leads to
-Wconversion-null warning in GCC.