added userdefkernel unit test (unfinished)