added unittests and config file