Added test code for Image service and avatar service