Added functions addAndStart and addToPlaylist
and implemented the test.js