Added missing 'end' to measures_controller_test