add test to lib