Added feature to create mods at runtime in the test code, and implemented a test with a simple mod to verify that it works.