Allow dist install tests

These changes allow a dist install and should help with test maintenance by removing reliance on the constants APP ROOT and TEST_APP.