use mock repository in test