fix tests for integrity constraints and not null fields