Added fixes to the destPath function
Added simple unit testing (destPath at first)