lib:audit_logging:tests: Check return value of json_new_{object,array}()