Make any instance expectation warning work with more implementations.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>