various lib tests