Changed arguments to allow the named tuple with flags and objects
test now returns all the metrics and distances