run mocha on flush - closes #10