fixes in knc.h and test set