test for short-circuiting conditional expressions