J: finalized test.py