What worked for me is simply returning a flowOf().
@Test fun `execute() should return a response true when object is found`() = runTest { coEvery { repository.entityExists(id) } returns flowOf(Response.Success(true)) ... }