Fixed assert_warns call