Fixed some bugs in LinkStateRouting. Added some stuff to the test.