OrientDB: fixed issue #4 and completed the test cases