CreateFile function tested