Add mismatch implementation and test