Testing interaction with repository