[PATCH v2 3/4] amstream/tests: Refactor test stream to allow multiple instances.