add test cases for || optimizations

Tickle the new || optimizations.