adding rspec tests for models