Fix failure of test and remove prints for debugging.