Tests for embargo middleware feature