Added spanning tree algorithm tests