Add tests for upsert with graphql variables

Moved from GitHub dgraph-js/100

Posted by prashant-shahi:

We should have test cases for upsert with GraphQL variables for both set and delete mutations, to be sure that everything works as it should.