fix race condition in store tests