Knc header tests

Tests for knc.h functions.