Add missing libs
Improved testing infrastructure
Add support for mod