test: fix -a and -o by using operator precedence
Merge pull request #414 from Arcterus/test-fix

test: fix -a and -o