In spite of many attempts, my unit tests are failing for the file print_number_of_occurences
Please, be more specific, otherwise it will be difficult to answer your question.
I am getting single integer(which is required) when I am running on the terminal. But I have no idea why my unit tests are failing. Even when I am executing .sh file I am getting the same output as on terminal.
Check the log files. Check your path again, I think that might be wrong. You need to write the similar path in a different way so that it gets accessed from anywhere inside the repo.