Refactor tests

Moved from GitHub dgo/51

Posted by srfrog:

Currently, dgo tests are running directly from examples. We need to add unit tests and have actual system tests.

  • Add unit tests were needed
  • Create system tests with a working Dgraph cluster