Change private methods to public
Add test and dependencies to test
Change jasmine to mocha and fix lint error