LPS-51313 Source formatting
LPS-51313 The testInvalidConfiguration is not doing what the name is suggesting, it means a broken logic. Fixing the validation logic.
LPS-51313 Fix the test, as it supposes to fail on invalid configuration
LPS-51313 Test the other invalid configuration case