Added test for tab handling