Hello!
I've noticed there are addresses that have prefix of tb1q
Yes, they are Bech32 encoded addresses for the testnet, in contrast to the legacy base58 addresses.
Anything special about these addresses?
They are usually used for
native segwit addresses.
When I tried to send a little bit of testnet bitcoins to such an address bitcoind did that just fine. But in the pricess it sent a huge amount of bitcoin (relatively to the main amount I was sending) to change address.
Here's that transaction
[url]https://testnet.blockchain.info/tx/3865f0eb3f59dfbef5506e0269430c773df0fa288bc89fb4fcc99ae1a2d8835e[/url]
I was sending 0.00008 BTC
But bitcoind sent 0.00909337 BTC as change in the process. And you can see how many unspent inputs it had to spend to do that. Why would it do that?
Because your testnet addresses had a lot of 0.000009
BTC UTXOs (inputs), so to send 0.00008
BTC it needed ~9 inputs, then it consolidated the remaining UTXOs as change.