add test code for ts and ts collection obj