Molecular dynamics and continuum simulations of fluid flows with slip boundary conditions