test: follow API change in collector's emit

Old:

    emit(value, name)

New:

    emit(name, value)