testing dynamic adding of key and secret