integration tests and repository working