made sure to add testWriteTrans main