Now closes the file channel after the test