adding in kernel call and test code in test.c