add test.py and copyright comments