add test for array passing in funcs