Maker's XP testing mode allows one do various things, including but not limited to: "Change pokemon movesets, add/remove money, walk through walls, spawn pokemons, edit pokemon stats, etc..."
It's all for making tests easier to do, but you can exploit it if you know how to use it... cuz it's easy af to use it.
As for "trading", Ame already answered: