Testing interacting dark matter and dark energy model with cosmological data