Testing the mathching with the cross function