1) Fixed original test failure.
1) Fixed original test failure.

2) Added a new test case, as I found that ancestor::* does not work with the optimizer

svn path=/trunk/eXist/; revision=13012

windauer/exist,lcahlander/exist,joewiz/exist,wolfgangmm/exist,RemiKoutcherawy/exist,wolfgangmm/exist,wolfgangmm/exist,lcahlander/exist,ljo/exist,adamretter/exist,adamretter/exist,ambs/exist,ambs/exist,opax/exist,MjAbuz/exist,jessealama/exist,wshager/exist,joewiz/exist,hungerburg/exist,windauer/exist,lcahlander/exist,dizzzz/exist,zwobit/exist,wshager/exist,ljo/exist,hungerburg/exist,ambs/exist,ljo/exist,windauer/exist,RemiKoutcherawy/exist,kohsah/exist,hungerburg/exist,opax/exist,zwobit/exist,patczar/exist,jensopetersen/exist,wolfgangmm/exist,jensopetersen/exist,kohsah/exist,shabanovd/exist,jensopetersen/exist,zwobit/exist,adamretter/exist,shabanovd/exist,eXist-db/exist,patczar/exist,jessealama/exist,kohsah/exist,zwobit/exist,joewiz/exist,olvidalo/exist,wshager/exist,wolfgangmm/exist,jessealama/exist,RemiKoutcherawy/exist,lcahlander/exist,shabanovd/exist,opax/exist,patczar/exist,eXist-db/exist,eXist-db/exist,joewiz/exist,ljo/exist,shabanovd/exist,eXist-db/exist,joewiz/exist,joewiz/exist,olvidalo/exist,patczar/exist,eXist-db/exist,RemiKoutcherawy/exist,jessealama/exist,lcahlander/exist,eXist-db/exist,shabanovd/exist,MjAbuz/exist,wolfgangmm/exist,dizzzz/exist,zwobit/exist,shabanovd/exist,dizzzz/exist,lcahlander/exist,kohsah/exist,RemiKoutcherawy/exist,ambs/exist,ljo/exist,wshager/exist,jessealama/exist,olvidalo/exist,opax/exist,adamretter/exist,hungerburg/exist,adamretter/exist,ambs/exist,wshager/exist,wshager/exist,windauer/exist,olvidalo/exist,dizzzz/exist,MjAbuz/exist,RemiKoutcherawy/exist,jensopetersen/exist,adamretter/exist,windauer/exist,zwobit/exist,MjAbuz/exist,ljo/exist,windauer/exist,ambs/exist,dizzzz/exist,kohsah/exist,MjAbuz/exist,olvidalo/exist,jensopetersen/exist,MjAbuz/exist,jensopetersen/exist,hungerburg/exist,kohsah/exist,opax/exist,patczar/exist,dizzzz/exist,jessealama/exist,patczar/exist