add testFreopen