remove setKey() method from lockdata, add tests