unit test to check if PrintWriter is closed in GeneProfilesTSVWriter