Refactor: extracted failing case into #invalid (line 6)