test to filter threads with != nil