Added test to ensure empty attribute values are extended correctly