specifically when both prevIndex and prevValue are provided
This should cover most aspects of the v1 API but being new to the etcd code base I cannot promise that or that the tests are even correct. They do pass though :)
We weren't checking for PrevNode being nil in the v1 code path. Do this and add a test. Fixes #557