These testnet outputs are not making sense to me
This is expected.

You don't appear to be accounting for fees.

If you account for them, you get:

+0.0005 386d83da01218ca74cbe72b19a6814293b98357921042a9b03ab39706fef8736
+0.0001 8e95c68f524e557a9b42d11207effae89c4e61913c5c4758adb142a6cdd03848
-0.00001 with -0.00034408 as Fees 91224995f2c240159141a499b91db8d26f0a6425fb12f5277d2f735576596aa7
-0.00001 with -0.00020792 as Fees  92287c75721563643f8dbf9ee5fff59abe1c9b6b36a638daa05c35d5fea981d0


This gives you a final balance of +0.0005 + 0.0001 -0.00001 -0.00034408 -0.00001 -0.00020792, which is 0.000028