completed integrated tests for controller