tests(avatars): refactor and add more event tests for cropper ui