working basalutil (with test suite) to produce actual and undelivered streams of basal rate segments
fix require for BasalUtil