unit tests for array ranges