ConfParser: Bugfixing, add test

This is heavily work in progress.