test relationships and clean factories