Adding a unit test for topology.