Added necessary tests for controllers.