Added test for thetae
Added function for thetae