TST: making sure the warning gets caught