You are missing // at the beginning of the XPath.
//
//span[text()='thisisatest']
You could try this:
span[span= "thisisatest"]
All <span> elements that contain at least one <span> element child with the value thisisatest.
<span>
Hope it helps!