Added a base package for testing.

Implemented Mocker interface and MockTransport.
I was asking why because you get the requests by an index, therefore your tests shouldn't have a concurrent nature if you care about the ordering. I'd just set a Handler without any mutex to switch back and forth between different handlers.