FIX bug in callable kernel decision function 

Obvious fix, added test (and tested that failed without the fix).
I guess testing was not very good before ^^ still, should have taken more care refactoring....

Closes #1894.