fixing set behavior to use keypather

updating the tests as well to be correct