added function test_import_key_pair