Add unit tests for __repr__ methods