added some unit tests for graph panel controller