testing from_records