Add related attribute test.