Librarise and test