add test if axis !=0.  
it looks like it should work, nobs and df are scalars (requirement ?) or correct reduced dimension