Fix misc Scrutinizer issues for Tests/GearmanClientStub

Fix a bunch of Scrutinizer style issues for ```GearmanClientStub```.