Test particles in a gas: Markovian and non-Markovian Langevin dynamics