Turn setup code in t2007-checkout-symlink.sh into a test