Changing approach to testing serialized result