remove f.clsoe()
modify unittest with each testcase has arrange, act, assrty three part