Reset datastores correctly before tests