gcrypt - avoid double init
make cmdline tests a bit more robust
add API test steps and first tests