attributes from relationships

Setting predicates with attributes from relationships seems not to work. I have added a testcase which should show that issue.