fix tests after change to print()