Change the way the xpath selector extracts string values
Add some selector tests