Make BasicAdapter test more resilient to failure
Correct association in embedded save test
Materialize record before triggering hooks

This resolve #405.