controller and karma tests