Regression tests and dynamically importing modules