test: Introduce a helper object for various test clients.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Merge pull request #515 from flynn/test-helper

test: Introduce a helper object for various test clients.