tests for knowlege base