Add test for CheckInputs
Summary:
Based on work from Suhas Daftar.
Depends on D531
Test Plan:
make check
Reviewers: freetrader, CCulianu, #bitcoin_abc, dagurval
Reviewed By: #bitcoin_abc, dagurval
Subscribers: dagurval
Differential Revision: https://reviews.bitcoinabc.org/D534