text: var baseTest = require('./basetest.js');
  var spotify = baseTest.spotify;
  
  baseTest.executeTest(tests);
  
  function tests() {
    console.log('Starting tests');
    /* Playlists */
    var playlistContainer = spotify.playlistContainer;
    var playlists = playlistContainer.getPlaylists();
    console.log('Playlists: ' + playlists.length)
    var starredPlaylist = spotify.sessionUser.starredPlaylist;
    console.log('Starred playlist accessible');
    var firstPlaylist = playlists[0];
    console.log('Playlistname: ' + firstPlaylist.name);
    console.log('Playlistlink: ' + firstPlaylist.link);
  
    /* Tracks */
    var starredTracks = starredPlaylist.getTracks();
    console.log('Starred tracks: ' + starredTracks.length);
    var firstStarredTrack = starredTracks[0];
    console.log('Trackname: ' + firstStarredTrack.name);
    console.log('Track is starred: ' + firstStarredTrack.starred);
    console.log('Track link: ' + firstStarredTrack.link);
    
    /* Album */ 
    var album = firstStarredTrack.album;
    console.log('Albumname: ' + album.name);
    console.log('Album link: ' + album.link);
  
    /* Artists */
    var artists = firstStarredTrack.artists;
    console.log('Artists: ' + artists.length);
    var firstArtist = artists[0];
    console.log('Artistname: ' + firstArtist.name);
    console.log('Artist link: ' + firstArtist.link);
  
    spotify.logout(function () {
      process.exit();
    });
  }
  