Make the test_object_cache more robust.