Remove unnecessary print statements from some tests.