Add tests for InstanceMethod classes