TST assert warnings are properly raised