courses controller with its tests