fixed analyse_ectestrecord for tdt  analysis