add integration tests and fix pylibmc client issue