tests: update some tests related to useless-null-test

Signed-off-by: Jean Privat <jean@pryen.org>
lib: remove useless null tests that broke some sav in tests/

Signed-off-by: Jean Privat <jean@pryen.org>