Fix output and input processing for feature tests