Another user noted that bitcoin-cli listtransactions "*" 99999 and getbalance "*" (these days simply getbalance) are not giving the same amounts when summed together.
I noticed the same behavior on a node I have access to, but could not reproduce this on regtest despite sending back and forth multiple times between two nodes.
To tally the listtransactions amounts:
bitcoin-cli listtransactions "*" 99999|jq -r ".[].amount, .[].fee" | grep -v null | perl -nle '$sum += $_ } END { print $sum'
Compare this to bitcoin-cli getbalance. It differs in my case, and in the case of the other user (both testnet and mainnet for him, mainnet for me; I don't have any testnet coins right now).