add tests/implementation for transaction relationships