Add missing require
Stub calls to FileUtils.cp_r
Update functional test to be faster