added unittest for userinput.py