adds tests for controller methods