Fixing broken tests and updating libraries