Added an clientTest to facilitate automated tests.