Reorganize shared tests.