Fix tests for raising exception in redhat checker