add library and test