Toy locomotive with a wagon