removed extra print statement from print_conditions and added a test for it