Function that converts an object into a mocha suite