test for HEADERS v2. cleanup test helpers