Factor out skipping tests into a helper.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Put higher version number as 5.17 seem to be also broken (especially on Darwin).

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>