add AssociationProxy support

issue #148
Simplifies tests for association proxies and applies style fixes.
Fixes code style.
Notes fix for #148 due to previous commits.