* Validate partitions before fencing * Fix build failure and tests * Add integration test * Fix indentation issues * Add more integration tests and address comments * PR comments * Address PR comments * PR comments