Fix unit test to handle explicit operator bool in C++11 mode