working bitsteam package with unit testing