Added tests for `signed int`, `signed`, `std::int32_t` and `const int&`. This is an addition to PR #5197. Part of #5064