add tests for header loader