tests for get_user_repository