Add a test for setting default values when initializing from a dictionary with nulls

The actual functionality seems to work correctly, but there weren't any tests for it.

@alazier
Ok. Seems fine then.