Add 5 unit-tests for controller.js