added the ternary expr visit, fixed some of the bugs
added a new test