Fix compile bug on APPLE for rtl_test.c

Fix compile bug on APPLE. Changes ts to tg pointer on line 165 and 166