refactoring, adding family id field
adding stuff for itemdao tests