Add testutil package and function to generate a dagservice