Add tests for InstanceMethod classes

I don’t remember why we let this feature in without tests, but here they are at last :smile: