Add tests for issue #38
Merge pull request #40 from wikimedia/issue-38

Partially handle predicate attributes