add JUnit test

-add JUnit test
-add test for splitting user input