tests: fix local vars and || ...