added e2e tests for key generation/handling