Fix $lt $gt tests

Closes issue #24

Fix issue where index was not defined, for $lt and $gt tests.
Also corrected expected outcomes from the tests