I cannot see why you need `shift 1` here, and please use the normal style for `if...then...else...fi`, i.e.:

```bash
if (($TASKS==3)); then
    ok $TEST_NAME
else
    fail $TEST_NAME
fi
```