Range manipulation and testing