update lib
add comp tests