build: conditionally enable testing-kernel feature