write test for ArrayAccess