Closed an unclosed file in the tests