Check for file to be created properly