[WFLY-2879] Add more functionality to TempTestModule, to be removed once TestModule is available in the next wildfly-core release