test expected result from graphs