properly detecting kernel_template test cases