Added tests using mocha. Update readme