added basic graph api unit tests

closes #3