Update `bfs-spanning-tree` to return a rooted tree
Test the `bfs-spanning-tree` function