Added a set of integration tests

These tests assert an initial state, and perform failover/failback tests.