added some rspec tests for models