unit test to reproduce JENKINS-13502 and confirm fix