update tmax, what_t, add tests for print_xx_ts