Fix test for not null constraint