hpacucli: refactor test to use array as input