Fix all Timeout-related tests.
Fix _generate_json test.