Working end to end now after integrating the mocha unit tests.