Refactor course_ware_json rspec