added testing, adjacency matrix creation