Write and pass test for printing pairs