     {id: 1, name: "test"}
   ]
   enterprises = [
-    {id: 1, visible: true, is_distributor: true, is_primary_producer: false, producers: [{id: 2}], taxons: [{id: 1}]},
-    {id: 2, visible: true, is_distributor: false, is_primary_producer: true, hubs: [{id: 1}]},
-    {id: 3, visible: true, is_distributor: false, is_primary_producer: true, hubs: [{id: 1}]}
+    {id: 1, visible: true, enterprise_category: "hub", producers: [{id: 5}], taxons: [{id: 1}]},
+    {id: 2, visible: true, enterprise_category: "hub", producers: [{id: 6}]}
+    {id: 3, visible: true, enterprise_category: "hub_profile"}
+    {id: 4, visible: false, enterprise_category: "hub", producers: [{id: 7}]}
+    {id: 5, visible: true, enterprise_category: "producer_hub", hubs: [{id: 1}]},
+    {id: 6, visible: true, enterprise_category: "producer_shop", hubs: [{id: 2}]},
+    {id: 7, visible: true, enterprise_category: "producer", hubs: [{id: 2}]}
+    {id: 8, visible: false, enterprise_category: "producer", hubs: [{id: 2}]}
   ]
+  H1: 0
   beforeEach ->
     module 'Darkswarm'
     module ($provide)->

    Enterprises.enterprises[0].active = false
    expect(Enterprises.hubs[0].active).toBe false

  it "delegates producers array to Enterprises", ->
    expect(Enterprises.producers[0]).toBe enterprises[1]

    expect(Enterprises.enterprises[0]).toBe Enterprises.enterprises_by_id["1"]

  it "dereferences references to other enterprises", ->
    expect(Enterprises.enterprises_by_id["1"].producers[0]).toBe enterprises[4]
    expect(Enterprises.enterprises_by_id["5"].hubs[0]).toBe enterprises[0]

  it "dereferences taxons", ->
    expect(Enterprises.enterprises[0].taxons[0]).toBe taxons[0]
