adding tests for configparser
fixing bugs found by unit tests