Pulled out the unit test to a function so we can run different amounts of nodes to insert in parallel