Core configuration handler.

Fixed minor issues with the core configuration handler.
Throwing exception when required attributes, elements, or items are missing.
Implemented full unit tests for the handler.