added tests for range.js