kvstore: factor out Transactional interface; tweak test organization