Add tests for core.symlinks setting from init() and init_()

Refer to JENKINS-22376, JENKINS-21168, and JENKINS-22391 for details.