add rspec tests for models