added functionalty to the check script for testing cases where the system should return non zero