fix mocha
add wait.forMillis test helper