Fix compilation issues
Make sure tab and items are saved or print error
Remove items using ID (not tab name)
Tests with correct line breaks (Linux and Windows)