Converted unit tests to rspec for grade model