modifications to make tests for controller pass