remove superfluous code in mock