copy_dir() needs to check if the location it's copying exists, otherwise it returns -1, and if destination doesn't exist, it creates it
Fixing tests