Convert ServiceDeprecationTest into a Kernel test