added test.py which is a auto-testing script written in python.