fixed pep on test error and enabled __repr__