In memory repository and integration tests