modify test to support array parameters