Added to_attributes to the mock