Made TestFile more secure