replaced throw_error with throw_exception
wrote tests for CannotDelegateLocalMethodIsPresent
wrote CannotDelegateLocalMethodIsPresent