update to latest mocha, implement script for tests