added unit testing and play-prev and play-next functionality