Add test coverage

Also test thrift_sync and thrift_gevent workers.