Add Custom serialization test using new API