simplify trim_nulls() tests