Fix regression tests...

Adds another condition to document switching, which points Dynamo at the
active UI document, if its document has been closed.
Fixes regression tests. Parameterized tests now have a test name
matching the folder that they come from and they each own a Dynamo
session.