updated key_handler tests