pls add an ``self.assert_(isinstance(r2,np.ndarray)`` just to confirm that it returns that type