Make test for open modes more robust against other bits.