add unit testing of ResourceDispatcher
fix bug in ResourceDispatcher thanks to unit test

on actor creation (first "Join" message). the user was not counted in the user
map.