the rspec tests

the rspec tests for models