testing ub_write_header