test: check length instead of not null