Fixed the output_type in engine_test