Added functionality for extracting Headers and simple test for it