Added some unit tests for the array access