cp() scoping tests