added test for pretty print serialization