working on kvstore_set

WARNING: updating keys is currently broken, and currently results
in a double-free/stack corruption.
add set and update tests

see warning in previous commit