Added test for proper unloading of modules.