add tests for nagios plugin