Linux kernel versions should never be tested.

Programs should always test for functionality, not kernel versions.
Otherwise you will always be playing whack-a-mole as distros backport
features and fixes to older "enterprise" kernels, you will constantly
have to keep modifying the version checks, and will always be behind.

Instead, just stick to functional tests, it's saner and actually works.