Added test code for set_trunc.