Add unit test for JENKINS-23473.