adds test for type of return, in this case, array