have tests for input graph and fixed small loading bug