added tests

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
changes to allow using nettle instead of libtomcrypt

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>