add test library, update test case