test for returning array