Added t/02-END-token-errors.t
Fixes RT#76856 and provides regression test for it