migrated events functional tests over to Mocha