minor improvement in range test generators