Fixed missing semicolons.
Added tests for GreaterThanReference and LessThanReference.