Enhanced testing automation (part 1)

This can all probably just be `automodule` now? But we can change that late.