Patch/tests

Improve consistency of tests and add tests for appwide configuration of all options.