Test err_fmt