spec: unit tests for apt_key type