Add debugger for tests
Use new mocha setup, fix deprecated warning