Add crypto/key tests