actually have this test prove that the session ended
allow periods in xpath nodes (fix #881)
Merge pull request #1497 from jlipps/master

misc fixes