move directory tests to common tests