Add test.py for tagging.