Assume I have some dynamics for the stock price under 2 different measures: risk-neutral and forward measures: $$dS_t=r S_tdt+\sigma S_td\tilde{W_t}$$ $$dS_t=\alpha S_tdt+\sigma S_td\hat{W_t}$$
now I define 2 functions: $$g(t,s)=\mathbb{\tilde{E}}[e^{-\int_t^Tr_udu}h(S(T))|\mathbb{F}_t]$$ $$f(t,s)=\mathbb{\hat{E}}[e^{-\int_t^Tr_udu}h(S(T))|\mathbb{F}_t]$$ Then in both cases $e^{-\int_0^tr_udu}g$ and $e^{-\int_0^tr_udu}f$ are martingales under $\tilde{\mathbb{P}}$ and $\hat{\mathbb{P}}$ respectively. In the first case, it is basically discounting with a bank account, which(using tower property) is RN measure associated with. In the second though, the measure is associated with the bond of maturity $T$ so I would expectt $f/B(t,T)$ be a martingale under $\hat{\mathbb{P}}$, but I see $e^{-\int_0^tr_udu}f$ is. So they both are?