test-helper cleanup of xdmp:eval and new get-test-file function

I wanted a `get-test-file` function so I could work with test documents without inserting them, or control document-insert more precisely. While I was in there I fixed up a potential problem in an `xdmp:eval` call and made the whereami functionality more robust.