get range syntax right, expand test cases