Added support for using different roots, and tried to fix travis testing