Added rspec test for models