Changed `npm test` to use default mocha test path
Updated tests to match API changes