testing result of a piped function