TST: Better handle np.array_equal() edge cases