fix(author): guard against npe + fix test