Tests for webmachine's conditional request flow