Make association methods writable.

For similar reasons to #296, I want to be able to stub out these methods in tests.