Specify mock config file content in test.
Instead of using a config file in resources, include the config file content to
be tested directly in the test.
Unittest to validate config entry deletion bug.
Add a unittest to validate bug #3043, where a duplicate empty config header
could cause deletion of a config entry to fail silently. The bug is currently
unresolved and this test will fail.