Added test for parts of KernelWrapper