Setup lib installation and testing

This probably went lost with the modules merge.