Added test for dominace query over more than one level.