Add additional parameter to by_targets test