Sample test exposing why the dependency upon InternalAbstractGraphDatabase is not a good thing

This pull request contains a simple test, exposing #378 in its clearer way.
And obviously the solution to that bug, which goes by the total replacement of `InternalAbstractGraphDatabase` by calls to `GraphDatabaseAPI` (wich does exactly the same thing, by the way).