add test for TernaryExpression

The parans are needed otherwise bs[i] does get recognized as an AA