Check for byte key in test_connection.py