Test for numpy array equality