Add test code to check the value of headerlist method