Improved parameterized __repr__ test.