A diffusion process and its applications to detecting a change in the drift of Brownian motion