rspec tests written for models and controllers