refines the testPrintContact function to better fit our application