Improve forward signature test (#27729)
* First draft
* Extend test_forward_signature
* Update tests/test_modeling_common.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* Revert suggestion
---------
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>