move application context configuration to tests
Add test showing usage of TemporaryFolderRule.