Keys managing work flow completely changed. Additional tests for keys-managing methods.