correcting failure check logic
adding correct test execution script