fix association.
refactor codes and add hard-delete test.
Merge pull request #12 from alfa-jpn/features/association

fix association.