added command line (mocha) testing in addition to the browser tests