added test for user input

added test for user input