Define test module dynamically