Add tests for range equality.

I wasn't so sure about whether this worked.