Add empty configuration.
Refactoring and add spec tests.