Fixes the WP directory issue in tests (hopefully!)