added unit tests for graph model