added test for header sending