[DONE] Use default avatar while errors

extends from \PHPUnit_Framework_TestCase and mock necessary deps