fixing config dict handling, test added