Directly set attribute when updating relation.

Also, added notes for tests that need to be written.