more json error handling
attempt to fix brittle integration test due to async code