add range tests and docs