Fix for the ternary operation not behaving correctly.

* Fix for the ternary operation not behaving correctly.
* Change the tests port that conflicted with others.
Yeah, I don't think we should alter an open source project based on internal problems