update packages and fix tests