Run Tests with mocha instead of human testing

Just converting the tests so they can be run automated.