world constructor function, meant to be used with Mocha