Handle flags even if no other headers

 - add test for sampling with/without header