added support for custom application config
added some tests for config merging