Add unit tests for empty ranges