spec tests for root id

Tests for inserting, updating and deleting by a custom root id