unit tests for header and footer