fix intermittent cppunit test failure