Add tests for deleting tabs
Improve rest api for deleting tabs