changed internal config structure
added basic test for config functionality