fixed a test case for slow testing modes like valgrind.