Extract test cases to module