Changed test library to mocha and refactored the implementation