Add kernel support for UT and sample change in test code