fixes the failing testcases 

This should do the trick.

We were testing repr by calling str, now it calls repr().

I'll add an issue regarding str test cases.