Tests for relation bug.