Move common tests to separate module