Added some functionality here:
- $mainAttributes + makeXpathForBlock()
these will allow to test only a part of the content, ex: test the menu links independently of the rest of the site