added transaction relationship methods and tests