Add a test for AmdModulesRegistry.

Usage of AmdModuleHeaderItem registers a module in the registry