jq tests and bugfixes