Fixed up the test mapgen to actually spawn a unit [rather than sending partial messages], and the unit layer to actually check for them [rather than just drawing one at 1,1,0].
The result is an actual unit which I can select, and the UnitBox can give me details for:
Not much, but it's hard to give movement commands to non-existant units...