I've closed the pull request because it tests multiple associations that use the same foreign key, which is not supported.