Fix graph presenter bug

also added rudimentary unit test for graph presenter