Refactor soundfun.serial components to better rely on injectable dependencies. Build a unit test for a simple case.