add rspec tests on model