Testing the get all orders function