implement avatar upload and include tests