moved testing code to 2testcode.py