added test for header method