Comparison between non-Markovian dynamics with and without rotating wave approximation