Use testing json assertions

Big branch (apologies!) but mostly mechanical.

Also updated dependencies.
We don't need the alias here, do we?