test wallet fetching, fix a smattering of bugs