Add module loading functional tests.

Verify the module loader correctly imports the modules found and that
the correct modules are found.