Add testing

Use mocha for testing