TEST: fix numpy array testing
It looks like a numpy change in how array comparisons are done has broken some tests, this MR should increase the reliability of these tests. This will fail one test because of !1294 (merged). This doesn't actually impact the codebase, just the tests.