8155774: move code from ModuleTestBase to toolbox

Reviewed-by: ksrini, jlahoda
43 files changed