fix mock context creation