TST+DOC: dostrings and tests for InGivenDirectory

Funnily enough, InGivenDirectory was deleting the contents of the Given
directory, which is a bit error prone.  Don't do that, and add test
module to test behavior.