Fix test to work with optimize() signature

optimize() expects args parameter, which is an object
of {data, path}.