fixed race condition in tests that use the value store