add dyn_cast_or_null tests, exclude invalid dyn_cast test