changing tests to include np.testing for arrays