Added unit tests for nestedCtrl in controllers.js