[WFLY-2879] - Remove duplicated code from test cases where custom modules are needed.
[WFLY-2879] Add more functionality to TempTestModule, to be removed once TestModule is available in the next wildfly-core release
Merge pull request #6658 from kabir/pedro-pr-6577

[WFLY-2879] - Remove duplicated code from test cases where custom module...