fix file path
reversed kbdi max and min
added tests for twc/kbdi