test print-and-return