more tests; drop attribute if value is nil