Added tests for GraphModel.
Added test for dijkstra, fixed bugs and refactored model properties to optional argument.