Added message type to receive handler map

to communication manager, and method to add
add type/handler pairs and added more tests.
Also fixed previous tests and errors that
were broken due to prior modifications.