Adding the function to generate a testbed