fixes wrong placement of expect in header integration test