make AMD modules testable

also a module file has been added in order to test the new flag manually