Kernel manipulator improvements:

    - change generation algorithm
    - Added test to cover KernelManipulator
    - Added stub objects to cover most relevant cases