testing if file is created