Refactored SubgraphTest/ClusterTest to reduce duplication.

- Removed unused import in most IG* tests.