Added testcase for [JENKINS-16499]