span_range tests rewritten