fix test failing on Matrix detach attempt