[pr-cleanup] improved invalid arg error handling for checks, fixed test