Additional tests for relation

This pull request is related with https://github.com/1602/jugglingdb/issues/264
The first added test(sync mode) fails(but it should not)
The second one(async mode) passes, but it doesn't pass on mongodb-adapter