I made this into a function so that the test could invoke them. Although other plugins use the pattern of just doing it in the __init__ function so I'll probably do that instead.

If the test does not set the right api_extensions_path, the appropriate plugins' extensions are not loaded and the exception raise that I have added gets thrown and the test fails.