Fixed SQL constructs for loading relationships of anon cvterms
Added tests for relationships of anon cvterms