Added build_file_header and tests