Add unit tests for graph presenter

including regression test for scenario of missing outcome node
title/body.