AMD fixed - attach module

AMD fixed - attach module
AMD test cases

AMD test cases