upgrade deps & fix tests