Fix fixture task duplicating primary key index

Fix duplicated primary key index and failing tests in the SkeletonTask.

Refs #44