Unit tests for Bellman-Ford