added test cases for deleteTask
refactor main method