A method to measure the validity of trajectory simulation by removing the boundary-dependent coherent scattering contribution