Add lib and test case.