added tests and compatibility for ArangoDB 2.0 and 2.1