Fixed an error in an old test discovered while implementing JENKINS-23533