adding model and rspec tests