fix an annoying bug on graph initialization, added a very simple test.
removed autogenerated specs.