Test create key

- Record key deletion too