Added test for __repr__, moved a test up which was in the wrong section (probably following a rebase).