Create unit tests for the Config class.

Created unit tests for the config class, changed the visibility of the
convertToObject method from public to protected.