Add tests of opaque keys