Added tests for checkInput