Capturing the output of the engine in tests