Add some tests for the Rest API concerning tabs.
Fix some problems in the Rest API for creating tabs