minor test changes regarding print and __repr__ to address denis' comment