Add more tests for topology manager