fix mock creation