fixed error in arrayRefs..
Testcases for array Refs