Add test for header_action method