Create application driver to contain common test logic

Im am trying to make the test more readable and easier to maintain.