begin fix test suits, fix several bugs
remove intermediate files