test for Floyd Warshall