Add a test for volume_range and improve its comment.