Added test for array circular index function