update dependencies and fix tests