Extract assert response test helper