Add test for 'text()' xpath function