Moving Application definition to enable reuse

Application settings are now reused between app and tests.