Write integration tests for UserRepo