fix representer tests to serialize and parse json