Re #79 Unit tests for sub-instance memory leak
[skip ci]