[tests] also capture expected source warnings in test_sink