PLAT-75 filling out the dispatch() tests

Added more tests for the execution paths in dipatch().
PLAT-75 adding function for updating the admin activity

This behavior has been moved to updateAdminActivity. I also added tests
for this method.