test and set creates the key if key does not exists. fixes #96