added unit testing - mocha