implemented simple test for control.py and eliminated input keyword