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 on some parts we are specifically unsetting related object (to test validation logic).