add config tests, better parsing