test key and addr