Updated mocha.opts and added unit test for lib/Controller.js