Added tests, fixed media endpoint not working with single media, updated readme