created rspec tests for assignment model