Correct a possible error in calling graphing function from tests.