add failing test demonstrating bug #1170, 'slice of undefined'