Add test cases for Quantity with record-array dtype