added test for array and function as parameter all passing