Add tests with non-empty NULL data

Test inserting and replacing uninitialized elements by passing a NULL
pointer as data.
Add function scv_assign
Combine some scv_assign tests
Use scv_assign in unit test