added default primary key value for closure table and fixed one wrong test