dded spec test
tweaks
changed var name
renamed
$key -> $secret
added secret_cb logic