tests: shell negation portability fix