[ticket/11600] Increase code test coverage of avatar manager

Currently, not all methods and their possible behaviors are tested with unit tests.
Add them for better code coverage.

Ticket: http://tracker.phpbb.com/browse/PHPBB3-11600

PHPBB3-11600