test: check that 'sub' fails if the length is too big