Code review for controller.js; Updating the controller.js test file;