Add new "unloadExtension" and "unloadExtensionFunction" methods.
Add tests for new "unloadExtension" and "unloadExtensionFunction" engine methods.
Improve LogicException tests by validating the error message as well.