Chemical reaction and diffusion: A comparison of molecular dynamics simulations with continuum solutions