add tests for bool exprs and nested ifs