Add e2e tests for relations