Fixed test with keyring implemantation.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>
Removed unused variable.

Signed-off-by: k4rl85 <k4rl85@hotmail.com>