tests/php-services: add helper shell script
Add unit test for AvatarService