[JENKINS-16636] Updated test and added ANY test
[JENKINS-16636] If there are no valid baselines, throw