Use ismock() to check a module member is a mocked or not. It allows not to skip subclasses of mocked class.