unit test for nagios_checkresult