Fix for spurious warnings (by always closing the GraphContext after each...

... test)