Fix all tests, convert to Mocha and update