started to add TDL parsing tests and fix bugs