Move compact tests to use their own database