improve test for FriendlyUrl

add new test

fixing image type issue

added new test and improved existing

deleted unused using

refactoring for 3 classes
Merge pull request #1102 from a-chumagin/r2

improve test for FriendlyUrl