unit tests for controller and config