adding tests shows _sm has memory leak