Add tests for error cases in the keyvaluestore.