fix a test and remove some superfluous print statements