add Entity spec and test for uniqueId