assert_warning() checks in case of multiple warnings