Added tests for Courses controller. Fix for nonnullable fields.