Fix failed unit test on Travis/gcc