writing tests for exams_spec.rb