adding testing code to wiki.py