Add test for meddling middleware