test/basic: verify our addr/privkey checks properly fail on invalid-data tests