tests converted to mocha
working mocha tests