refactor unittest script, show default avatar for no-avatar users