Added __tostring to class and updated anon class naming.
Fixed the test.