Fix failed tests

Got it. So they don't like at all a nil pointer. If we want to add a null attribute then we have to explicitly call the appendNull() function then