Fixing bugs in getThetamat and adding tests

git-svn-id: svn://svn.r-forge.r-project.org/svnroot/ordinal@124 dd220844-296b-48bf-b704-e9ffb8426404