improved test function for the cross-link restraint