Add simplified factory methods for creating client and test client
Set private properties and methods where appropriate
CS fixes
Upgrade PHPUnit and travis build script