#JC-1188 Tests for controller.