added tests for key generation and revoking