Use testing json assertions

Big branch (apologies!) but mostly mechanical.

Also updated dependencies.