fixed all files to pass the mocha tests