Update tests to use official xunit
Generalize BasePath logic.
Make the way configurable how hosting is kept alive