Refactored selector tests after separating HTML and XML block selection. Added XML tests.