added tests for read_attribute_for_serialization