Fixed problem with file copying. Now will work outside of testing.