mirror client patch fxn, updated tests to clear out inserted items after running