xml config tests and bugfix