This was causing problems when the [KWMessagePattern argumentFiltersMatchInvocationArguments:] was called to validate if an expectation is matched. I added the extra check for class, however removing the class test in argumentFiltersMatchInvocationArguments: should have the same effect.