testFunction - call function and print input and output