Added test for testing JSON failover.