Added a unit test for image path setting