Add spec for package model and refactor factories
Add stub code for spec @ package model