Modified test_x509.py to work on Linux
Fixed test_log.py import error

Tests failed when trying to import serial module on Linux