Added tests around file creation.