Fix for the ternary operation not behaving correctly.

* Fix for the ternary operation not behaving correctly.
* Change the tests port that conflicted with others.
Why is this necessary? What is this getting set to where it's not either `true` or `false` or `null` anyway? That seems like a problem in your code and not in this library.