started unit tests, and fixed input error