Testing collision order (shape a with b and b with a)