Fixed several small bugs in verse_avatar module
Refactored unit testing of verse_avatar module