unit test fix in C++11