rails test respository