Small refactor to return a saner number of arguments.
Add unit test for tabletmanager RPC layer.

It can be extended to test all RPC implementations.