Added sys.platform check to test.py