[qa] Rewrite BIP66 functional tests