HC Test: improve functional suite setup and teardown