Removes unnecessary print statements from test