add tests for malformed ranges