Added next method for MPD module, along with corresponding test.