Update tests that still do not use `mockHost` for certain operations, like `addCode`. PR Close #32589