This fixes a regression introduced in 1.9 where test modules became main modules by side loading them in a generated module.