pkg/testutils: utility functions to facilitate writing Go tests