Supprting querying relationship attributes. Updated test suite.