use awk lib and test case