test.py added test code