Reworking errors with configuration file.
Updating tests for new config output.