reworked the tests into mocha
tests work
do not completly fail after an error
clean up
temp hack
temp unhack