CLN/TST: properly test warnings