Merged tesetCase3.cpp into testCase2.cpp, adding more parameters and moving utility functions to separate files