Added test for passing a reference to create

Failing tests for #20.

We actually use both patterns in our code base (pass by reference and by id), as both were working in 0.4. Also in some tests we are specifically unsetting a related object (to test validation logic).