Rewrote tests with listEqualsInRange to be more robust

Added listEquals method and rewrote listEqualsInRange around it