HV-672 Adding checks for method matching the object and parameters matching the method