add setup.py and test function.