added test for getheaders