Hack: use helper functions in tests for less copy-pasting

mkContainer is a helper function which creates a test container for unit testing. It helps make tests more concise and readable.