added range tests to js