Added automatic failover test (as part of #2)