TST: better testing for numpy structured array comparison (GH8996)