Added config subpackage and added tests