var -> val
Use the available copyFile instead of inventing a new one
Fix continuations plugin test execution