Update tests to avoid warnings and errors with newer versions of the dependencies.