close the file at the end of the test

Change-Id: I9e0636af65258646572da126e93766552fa1e1df
close files after test

Change-Id: Ibf04fa79570a2417c965e773a789827a86787471