Added a unit test for ArrayCache