adds KeyVersion + tests