Update dependencies and add tests