test: Introduce a helper object for various test clients.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>