attempt to get functional tests working. removed debug tests.
mocha test to the build script.