unit test for toString after desrialization