Add hidden properties serialization test.