Mock the context correctly