Corrected Unit Tests for JENKINS-14685

The original test case was not complete (i.e. had some potential loopholes)