adding test for nil uuid fields to make sure they are encoded correctly