correcting the testcase (still have not tested with valid data) and improving the user output after hte command  finishes