Added test for fetchArray