adds `.wrapEngine` method, tests