fix failing test by parenthesizing OR'ed conditions