[COOK-1863] Make version constraint test more elaborate, to be able to handle release candidates.