adding more tests, fixed a bug in config reader