Tests for range indexing and toString invocation