Add unit tests for habari/habari#448
Reference habari/system@df3ec1bd8993ca74008079b9110136038d73f735