test: added test TestReplacePublicFileName and TestCreateImageUrl