Merge #14940: test: Add test for truncated pushdata script
Summary:
PR14940 backport
Pull request description:
Previously not covered by any test
Test Plan: ninja check
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D5191