test the key file